//
//  OAMainAddressViewController.m
//  OASystem
//
//  Created by zhoupengfei on 15/12/6.
//  Copyright © 2015年 zpf. All rights reserved.
//

#import "OAMainAddressViewController.h"
#import "OAExpendViewController.h"
#import "OACountyTableViewController.h"
@interface OAMainAddressViewController ()

@end

@implementation OAMainAddressViewController

-(void)viewDidLoad{
    self.title = @"选择人员";
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
   
    if (indexPath.row == 1) {
       
         OAExpendViewController * expendVC = [[OAExpendViewController alloc] init];
        expendVC.type = DepartmentDataType;
        [self.navigationController pushViewController:expendVC animated:YES];
        
    }else if (indexPath.row == 0) {
         OAExpendViewController * expendVC = [[OAExpendViewController alloc] init];
       // expendVC.type = UnitDataType;
        expendVC.identifierString = @"ccpitzj";
         [self.navigationController pushViewController:expendVC animated:YES];
        
    }else if (indexPath.row == 2){
         OACountyTableViewController * countyVC = (OACountyTableViewController*)[self.storyboard instantiateViewControllerWithIdentifier:@"countyVCID"];
        [self.navigationController pushViewController:countyVC animated:YES];
    }
    
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
//    if (self.addressType == LessMainAddressType && indexPath.row == 2) {
//        return 0;
//    }
    return 44;
}


@end
